import request from '@/router/axios';

export const getMaterialFileByXdForm = (data) => {
    return request({
        url: '/api/vingsoft-acceptance/thirdApiService/getMaterialFileByXdForm',
        method: 'post',
        data: {
            data
        }
    })
};

export const getMaterialFileByXdFormPc = (materialName, materialNo, rowguid, formid) => {
    return request({
        url: '/api/vingsoft-acceptance/thirdApiService/getMaterialFileByXdFormPc',
        method: 'post',
        params: {
            materialName,
            materialNo,
            rowguid,
            formid
        }
    })
};

export const visitPickUp = (projectNo, logisticType) => {
    return request({
        url: '/api/vingsoft-acceptance/thirdApiService/visitPickUp',
        method: 'get',
        params: {
            projectNo,
            logisticType,
        }
    })
};

export const getOrderCodebyMailNo = (projectNo, logisticType) => {
    return request({
        url: '/api/vingsoft-acceptance/thirdApiService/getOrderCodebyMailNo',
        method: 'get',
        params: {
            projectNo,
            logisticType
        }
    })
};

export const queryMailNo = (projectNo) => {
    return request({
        url: '/api/vingsoft-acceptance/thirdApiService/queryMailNo',
        method: 'get',
        params: {
            projectNo,
        }
    })
};

export const batchGetNumber = (count, projectNo, logisticType) => {
    return request({
        url: '/api/vingsoft-acceptance/thirdApiService/batchGetNumber',
        method: 'get',
        params: {
            count,
            projectNo,
            logisticType
        }
    })
};
